package org.dubnation.org.domain;

import org.dubnation.base.domain.BaseDomain;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhu
 * @since 2023-10-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Department extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 部门编号
     */
    private String sn;
    /**
     * 部门名称
     */
    private String name;
    /**
     * 部门的上级分类层级id
     */
    private String path;
    /**
     * 部门状态，0正常，1禁用
     */
    private Integer state;
    /**
     * 部门管理员，关联Employee表id
     */
    private Employee manager;
    private List<Employee> employees;
    /**
     * 上级部门
     */
    private Department parent;

    /**
     * 店铺
     */
    private Shop shop;
    private List<Shop> shops;
    /**
     * 子部门
     */
    private List<Department> children;
}
